package com.xiechuang.controller;

import com.xiechuang.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description 控制层
 * @Author xiechuang
 * @Date 2021/11/14
 */
@RestController
@RequestMapping("")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping(value = "/testFeign", method = RequestMethod.GET)
    public String testFeign(@RequestParam(defaultValue = "xiechuang", value = "name", required = false) String name) {
        return testService.testFeign(name);
    }

}
